/*******************************************************
 *
 *  Name    :  Levi Kushlan
 *  Team Name: Unonymous
 *  Project :  UNO Game
 *  Main    :  Game.java
 *  Date    :  9/27/2012
 *
 ********************************************************/
public class Deck {

    private Card [] card;


    public Deck(Card [] card){
        this.card = card;
    }

    public Card []getDeck(){
        return card;
    }

    public void setDeck(Card[] card){
        this.card = card;
    }

    public Card [] Fill( Card card []){
        card [33]=new Card(1,1,"Yellow");
        card [0] = new Card(2,2,"Yellow");
        card [1] = new Card(3,3,"Yellow");
        card [2] = new Card(4,4,"Yellow");
        card[3] = new Card(5,5,"Yellow");
        card[4] = new Card(6,6,"Yellow");
        card[5]  = new Card(7,7,"Yellow");
        card[6] = new Card(8,8,"Yellow");
        card [7]= new Card(9,9,"Yellow");
        card [8] = new Card(10,20,"Yellow"); //Reverse
        card [9] = new Card(11,20,"Yellow"); // Skip
        card [10] = new Card(12,20,"Yellow");//Draw two

        card [34]=new Card(1,1,"Yellow");
        card [20] = new Card(2,2,"Yellow");
        card [21] = new Card(3,3,"Yellow");
        card [22] = new Card(4,4,"Yellow");
        card[23] = new Card(5,5,"Yellow");
        card[24] = new Card(6,6,"Yellow");
        card[25]  = new Card(7,7,"Yellow");
        card[26] = new Card(8,8,"Yellow");
        card [27]= new Card(9,9,"Yellow");
        card [28] = new Card(10,20,"Yellow");
        card [29] = new Card(11,20,"Yellow");
        card [30] = new Card(12,20,"Yellow");
        card [49] = new Card(0,0,"Yellow");

        card [35] = new Card(1,1,"Red");
        card [11] = new Card(2,2,"Red");
        card [12] = new Card(3,3,"Red");
        card [19] = new Card(4,4,"Red");
        card[13] = new Card(5,5,"Red");
        card[14] = new Card(6,6,"Red");
        card[15]  = new Card(7,7,"Red");
        card[16] = new Card(8,8,"Red");
        card [17]= new Card(9,9,"Red");
        card [18] = new Card(10,20,"Red");
        card [32] = new Card(11,20,"Red");
        card [31] = new Card(12,20,"Red");

        card [36] = new Card(1,1,"Red");
        card [37] = new Card(2,2,"Red");
        card [38] = new Card(3,3,"Red");
        card [39] = new Card(4,4,"Red");
        card[40] = new Card(5,5,"Red");
        card[41] = new Card(6,6,"Red");
        card[42]  = new Card(7,7,"Red");
        card[43] = new Card(8,8,"Red");
        card [44]= new Card(9,9,"Red");
        card [45] = new Card(10,20,"Red");
        card [46] = new Card(11,20,"Red");
        card [47] = new Card(12,20,"Red");
        card [48] = new Card(0,0,"Red");

        card [50] = new Card(1,1,"Green");
        card [51] = new Card(2,2,"Green");
        card [52] = new Card(3,3,"Green");
        card [53] = new Card(4,4,"Green");
        card[54] = new Card(5,5,"Green");
        card[55] = new Card(6,6,"Green");
        card[56]  = new Card(7,7,"Green");
        card[57] = new Card(8,8,"Green");
        card [58]= new Card(9,9,"Green");
        card [59] = new Card(10,20,"Green");
        card [60] = new Card(11,20,"Green");
        card [61] = new Card(12,20,"Green");

        card [62] = new Card(1,1,"Green");
        card [63] = new Card(2,2,"Green");
        card [64] = new Card(3,3,"Green");
        card [65] = new Card(4,4,"Green");
        card[66] = new Card(5,5,"Green");
        card[67] = new Card(6,6,"Green");
        card[68]  = new Card(7,7,"Green");
        card[69] = new Card(8,8,"Green");
        card [70]= new Card(9,9,"Green");
        card [71] = new Card(10,20,"Green");
        card [72] = new Card(11,20,"Green");
        card [73] = new Card(12,20,"Green");
        card [74] = new Card(0,0,"Green");

        card [75] = new Card(1,1,"Blue");
        card [76] = new Card(2,2,"Blue");
        card [77] = new Card(3,3,"Blue");
        card [78] = new Card(4,4,"Blue");
        card[79] = new Card(5,5,"Blue");
        card[80] = new Card(6,6,"Blue");
        card[81]  = new Card(7,7,"Blue");
        card[82] = new Card(8,8,"Blue");
        card [83]= new Card(9,9,"Blue");
        card [84] = new Card(10,20,"Blue");
        card [85] = new Card(11,20,"Blue");
        card [86] = new Card(12,20,"Blue");

        card [87] = new Card(1,1,"Blue");
        card [88] = new Card(2,2,"Blue");
        card [89] = new Card(3,3,"Blue");
        card [90] = new Card(4,4,"Blue");
        card[91] = new Card(5,5,"Blue");
        card[92] = new Card(6,6,"Blue");
        card[93]  = new Card(7,7,"Blue");
        card[94] = new Card(8,8,"Blue");
        card [95]= new Card(9,9,"Blue");
        card [96] = new Card(10,20,"Blue");
        card [97] = new Card(11,20,"Blue");
        card [98] = new Card(12,20,"Blue");
        card [99] = new Card(0,0,"Blue");

        card [100] = new Card(13,50,"Wild");
        card [101] = new Card(13,50,"Wild");
        card [102] = new Card(13,50,"Wild");
        card [103] = new Card(13,50,"Wild");
        card [104] = new Card(14,50,"Draw4");
        card [105] = new Card(14,50,"Draw4");
        card [106] = new Card(14,50,"Draw4");
        card [107] = new Card(14,50,"Draw4");

        return card;
    }

    @Override
    public String toString(){

    String s ="";
        for (int i = 0; i < card.length; i++) {
       s += (card[i]);
        }

        return s;
    }

}
